@extends('Home.bbs.layout')
<script src="/bootcss/home/Scripts/bbs/jquery-2.0.3.min.js" type="text/javascript"></script> 
<script type="text/javascript">
$(function(){

	//设置全局变量
	var i = 0;
	//获取图片个数量
	var length = $('.pic li').length;
	
	//定时器
	var inte = setInterval(function(){
			moveR();
	},1000);
	//鼠标悬停事件
	$('.dfsj_topltslide').hover(function(){
		//移入清楚
		clearInterval(inte);
	},function(){
		//移入
		inte = setInterval(moveR,2500);
	})
	//点击下点
	$('.dfsj_topltslide .num li').click(function(){
		//当前圆点的索引
		i = $(this).index();
		//计算left
		//newLeft = i*1000;
		//设置样式
		$('.dfsj_topltslide .pic').animate({left:-newLeft+'px'},1000);
		//设置圆点样式
		$('.dfsj_topltslide .num li').eq(i).addClass('on').siblings().removeClass('on');
	})
	//封装向右移动方法
	function moveR()
	{
		//i++;
		//越界判断
		if(i == length){
			i = 0;
		}

		//计算left
		// newLeft = i*1000;
		//设置样式
		// $('.dfsj_topltslide .pic').animate({left:-newLeft+'px'},1000);
		$('.image').eq(i).css({display:'block'}).siblings().css({display:'none'});
		// //设置圆点样式
		 $('.dfsj_topltslide .num li').eq(i).addClass('on').siblings().removeClass('on');
		i++;
	}
});
</script>
@section('lunbo')
		<div class="dfsj_top mbm cl">
    <div class="dfsj_topl z"> 
     <div class="dfsj_toplt dfsj_bm cl">
      <!--[diy=dfsj_oneplus1]-->
      <div id="dfsj_oneplus1" class="area">
       <div id="frameuHqxUa" class="frame move-span cl frame-1">
        <div id="frameuHqxUa_left" class="column frame-1-c">
         <div id="frameuHqxUa_left_temp" class="move-span temp"></div>
		 
         <div id="portal_block_165" class="block move-span">
          <div id="portal_block_165_content" class="dxb_bc"> 
           <div class="dfsj_topltslide"> 
            <ul class="pic">
            @foreach($resss as $k=>$v)
             <li class="image" ><a href="#" target="_blank" title=""><img class="dfsj_lazy"t src="{{$v->img}}"  width="600" height="340" alt="" /></a></li>
            @endforeach
            </ul> 
            
            
            <ul class="num">
             <li><a class="on" href="javascript:;"></a></li>
             <li><a href="javascript:;"></a></li>
             <li><a href="javascript:;"></a></li>
             <li><a href="javascript:;"></a></li>
             <li><a href="javascript:;"></a></li>
            </ul> 
           </div> 
           <script type="text/javascript">
				dfsj_jq(".dfsj_topltslide").slide({titCell:".num li",mainCell:".pic",effect:"fold",autoPlay:true,trigger:"click",startFun:function(i){dfsj_jq(".dfsj_topltslide .txt li").eq(i).animate({"bottom":0}).siblings().animate({"bottom":-40})}});
			</script>
          </div>
         </div>
        </div>
       </div>
      </div>
      <!--[/diy]-->
     </div> 
     <div class="dfsj_toplb cl"> 
      <div class="dfsj_bm_h cl"> 
       <h2 title="72小时热帖推荐">72小时热帖推荐</h2> 
      </div> 
      <!--[diy=dfsj_oneplus2]-->
      <div id="dfsj_oneplus2" class="area">
       <div id="framePOUJ7p" class="frame move-span cl frame-1">
        <div id="framePOUJ7p_left" class="column frame-1-c">
         <div id="framePOUJ7p_left_temp" class="move-span temp"></div>
         <div id="portal_block_191" class="block move-span">
          <div id="portal_block_191_content" class="dxb_bc"> 
           <ul class="dfsj_ullist cl">
            <li><a href="http://www.oneplusbbs.com/thread-2998059-1-1.html" target="_blank" title="色分明 轻摄影版块第7周加油作品精选">色分明 轻摄影版块第7周加油作品精选</a></li>
            <li><a href="http://www.oneplusbbs.com/thread-2997995-1-1.html" target="_blank" title="重获新声！一加银耳2开箱晒单有好礼">重获新声！一加银耳2开箱晒单有好礼</a></li>
            <li><a href="http://www.oneplusbbs.com/thread-2991140-1-1.html" target="_blank" title="摄影大篷车第四季4期 优秀摄影作品榜">摄影大篷车第四季4期 优秀摄影作品榜</a></li>
            <li><a href="http://www.oneplusbbs.com/thread-3001962-1-1.html" target="_blank" title="向油壕低头！双11等你榨干兑换商城">向油壕低头！双11等你榨干兑换商城</a></li>
            <li><a href="http://www.oneplusbbs.com/thread-2995031-1-1.html" target="_blank" title="一日一图专属官方壁纸 每天1张好照片">一日一图专属官方壁纸 每天1张好照片</a></li>
            <li><a href="http://www.oneplusbbs.com/thread-2950461-1-1.html" target="_blank" title="手把手教你入门 看氢OS 2.5系列教程">手把手教你入门 看氢OS 2.5系列教程</a></li>
            <li><a href="http://www.oneplusbbs.com/thread-2963077-1-1.html" target="_blank" title="一日一图君告诉你：最美的秋天在哪里">一日一图君告诉你：最美的秋天在哪里</a></li>
            <li><a href="thread-2989062-1-1.html" target="_blank" title="OnePlus 3 氢OS 2.5 公测第4版 更新">OnePlus 3 氢OS 2.5 公测第4版 更新</a></li>
           </ul>
          </div>
         </div>
        </div>
       </div>
      </div>
      <!--[/diy]--> 
     </div> 
    </div>
	
    <div class="dfsj_topy y"> 
     <div class="dfsj_topyt dfsj_bm hm cl"> 
      <a href="http://www.oneplusbbs.com/forum.php?mod=misc&amp;action=nav" onclick="showWindow('nav', this.href, 'get', 0)" class="dfsj_post"></a> 
      <a rel="nofollow" href="plugin.php?id=dsu_paulsign:sign" class="dfsj_sign" target="_blank">今日签到<br />8187人</a> 
     </div> 
     <div class="dfsj_tips cl"> 
      <!--[diy=dfsj_oneplus3]-->
      <div id="dfsj_oneplus3" class="area">
       <div id="frameOE439V" class="frame move-span cl frame-1">
        <div id="frameOE439V_left" class="column frame-1-c">
         <div id="frameOE439V_left_temp" class="move-span temp"></div>
         <div id="portal_block_212" class="block move-span">
          <div id="portal_block_212_content" class="dxb_bc">
           <div class="portal_block_summary">
            <div class="dfsj_xiaotips mbm cl"> 
             <a rel="nofollow" href="plugin.php?id=op_exchange:item_list" target="_blank" class="dfsj_dhsc"></a> 
             <a href="http://www.oneplusbbs.com/home.php?mod=task" target="_blank" rel="nofollow" class="dfsj_cjrw"></a> 
             <a href="plugin.php?id=choujiang" target="_blank" class="dfsj_xycj" rel="nofollow"></a> 
            </div>
           </div>
          </div>
         </div>
         <div id="portal_block_213" class="block move-span">
          <div id="portal_block_213_content" class="dxb_bc">
           <a href="http://oneplusbbs.com/plugin.php?id=special" target="_blank" title="真的，这让我们又喜又忧！" class="dfsj_ad mbm cl"><img src="/bootcss/home/Picture/bbs/155340h9dkdyd3j2b9j6y9.jpg" width="310" height="79" alt="真的，这让我们又喜又忧！" /></a>
          </div>
         </div>
         <div id="portal_block_214" class="block move-span">
          <div id="portal_block_214_content" class="dxb_bc">
           <a href="http://photos.oneplus.cn/" target="_blank" title="一日一图，每天一张好照片" class="dfsj_ad cl"><img src="/bootcss/home/Picture/bbs/151040bbkbpm8wb8w0q5t5.jpg" width="310" height="110" alt="一日一图，每天一张好照片" /></a>
          </div>
         </div>
        </div>
       </div>
      </div>
      <!--[/diy]--> 
     </div>
     <!-- 巅峰设计 --> 
     <div class="dfsj_topyd cl"> 
      <div class="dfsj_bm_h cl"> 
       <h2 title="快捷导航">快捷导航</h2> 
      </div> 
      <ul class="cl"> 
       <li><a target="_blank" rel="nofollow" href="thread-132131-1-1.html"><i class="dfsj_ico1"></i>新手入门</a></li> 
       <li><a target="_blank" href="forum.php?mod=forumdisplay&amp;fid=2&amp;filter=typeid&amp;typeid=9"><i class="dfsj_ico2"></i>最新活动</a></li> 
       <li><a target="_blank" href="thread-2908613-1-1.html"><i class="dfsj_ico10"></i>社区app</a></li> 
       <li><a target="_blank" href="forum.php?mod=forumdisplay&amp;fid=52&amp;filter=typeid&amp;typeid=31"><i class="dfsj_ico4"></i>资源下载</a></li> 
       <li><a target="_blank" href="forum.php?mod=forumdisplay&amp;fid=52&amp;filter=typeid&amp;typeid=44"><i class="dfsj_ico12"></i>壁纸主题</a></li> 
       <li><a target="_blank" href="http://www.oneplusbbs.com/forum.php?gid=57"><i class="dfsj_ico6"></i>ROM</a></li> 
       <li><a target="_blank" href="http://www.oneplusbbs.com/forum.php?mod=bugfeedback"><i class="dfsj_ico11"></i>反馈BUG</a></li> 
       <li><a target="_blank" href="plugin.php?id=op_jiayouchupin:jycp"><i class="dfsj_ico3"></i>加油出品</a></li> 
       <li><a onclick="window.open('http://b.qq.com/webc.htm?new=0&amp;sid=4008881111&amp;eid=218808P8z8p8Q8x8y8P8y&amp;o=www.oneplus.cn&amp;q=7&amp;ref='+document.location, '_blank', 'height=400, width=644,toolbar=no,scrollbars=no,menubar=no,status=no');" href="javascript:;"><i class="dfsj_icoqe"></i>在线客服</a></li> 
      </ul> 
     </div>
    </div> 
   </div> 
@endsection
@section('zhuti')
	 <div class="dfsj_forum cl">
	 @foreach($type as $k=>$v)
	  <div class="dfsj_bm cl"> 
       <div class="dfsj_bm_h cl"> 
        <h2><a href="{{url('/home/post/index',['id'=>$v->id])}}">{{$v->name}}</a></h2> 
       </div> 
       <div class="dfsj_forumlist cl"> 
        <div class="dfsj_forumlistz z"> 
         <div class="pbm cl"> 
          <div class="fl_icn_g" style="width: 70px;"> 
           <a href="http://www.oneplusbbs.com/forum-115-1.html"><img src="/bootcss/home/Picture/bbs/common_115_icon.gif" align="left" alt="" /></a>
          </div> 
          <dl class="cl" style="margin-left: 80px;"> 
           <dt class="xi2">
            版块分类
           </dt>
           <dd class="cl"> 
            <div>
             <a href="http://www.oneplusbbs.com/forum.php?mod=forumdisplay&amp;fid=115&amp;filter=typeid&amp;typeid=113">{{$v->content}}</a>
            </div> 
            
           </dd> 
          </dl> 
         </div> 
         <p><em>主题 : <span title="104836">10万</span></em><span class="pipe">|</span><em>帖数: <span title="1207712">120万</span></em></p>
         
        </div> 
        <div class="dfsj_forumlisty z"> 
         <div class="dfsj_forumlistyz z"> 
          <div class="dfsj_bm_h cl">
           <h2>热帖推荐</h2>
          </div> 
          <!--[diy=dfsj_oneplus27]-->
          <div id="dfsj_oneplus27" class="area">
           <div id="frame7uUSL5" class="frame move-span cl frame-1">
            <div id="frame7uUSL5_left" class="column frame-1-c">
             <div id="frame7uUSL5_left_temp" class="move-span temp"></div>
             <div id="portal_block_243" class="block move-span">
              <div id="portal_block_243_content" class="dxb_bc"> 
               <ul class="dfsj_ullist cl">
                <li><a href="http://www.oneplusbbs.com/thread-2864496-1-1.html" target="_blank" title="告别不快！一加3极速而来">告别不快！一加3极速而来</a></li>
                <li><a href="http://www.oneplusbbs.com/thread-2861195-1-1.html" target="_blank" title="极速体验 仍是最好一加手机">极速体验 仍是最好一加手机</a></li>
                <li><a href="http://www.oneplusbbs.com/thread-2860127-1-1.html" target="_blank" title="州杭：简约生活 有你相伴！">州杭：简约生活 有你相伴！</a></li>
                <li><a href="http://www.oneplusbbs.com/thread-2858597-1-1.html" target="_blank" title="跑分王 国产手机标杆NO.1">跑分王 国产手机标杆NO.1</a></li>
                <li><a href="http://www.oneplusbbs.com/thread-2858429-1-1.html" target="_blank" title="一加手机3：&quot;不完美的手机&quot;">一加手机3：&quot;不完美的手机&quot;</a></li>
                <li><a href="thread-2848390-1-1.html" target="_blank" title="极速体验 不忘初心荣耀前行">极速体验 不忘初心荣耀前行</a></li>
               </ul>
              </div>
             </div>
            </div>
           </div>
          </div>
          <!--[/diy]--> 
         </div> 
         <div class="dfsj_forumlistyy y"> 
          <!--[diy=dfsj_oneplus28]-->
          <div id="dfsj_oneplus28" class="area">
           <div id="frame3hTEJ2" class="frame move-span cl frame-1">
            <div id="frame3hTEJ2_left" class="column frame-1-c">
             <div id="frame3hTEJ2_left_temp" class="move-span temp"></div>
             <div id="portal_block_244" class="block move-span">
              <div id="portal_block_244_content" class="dxb_bc">
               <ul class="dfsj_imgs cl">
                <li><a href="thread-2860922-1-1.html" target="_blank" title="除了拍照 还有更多"><img class="dfsj_lazy" src="/bootcss/home/Picture/bbs/184826nxxgqgsbs3cqykzx.jpg" data-original="http://static.oneplus.cn/data/attachment/portal/201608/03/184826nxxgqgsbs3cqykzx.jpg" width="200" height="130" alt="除了拍照 还有更多" /><span></span><em>除了拍照 还有更多</em></a></li>
               </ul>
              </div>
             </div>
            </div>
           </div>
          </div>
          <!--[/diy]--> 
         </div> 
        </div> 
       </div> 
      </div> 
	@endforeach
     </div 	>
@endsection